﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FarseerPhysics.DebugViews;
using FarseerPhysics.Dynamics;
using Krypton;
using Microsoft.Xna.Framework;

namespace ScarletCore
{
    public static class Globals
    {
        public static string Title = "Scarlett ALPHA";
        public static string Version = "v0.00.0003";

        public static int RandomInt(int min, int max)
        {
            return Objects.RandomGen.Next(min, max);
        }
        public static double RandomDouble(double min, double max)
        {
            return Objects.RandomGen.NextDouble() * (max - min) + min;
        }
    }

    public static class Objects
    {
        public static Game GameObject { get; set; }
        public static KryptonEngine KryptonEngine { get; set; }
        public static DebugViewXNA FarseerDebugView { get; set; }
        public static World GameWorld { get; set; }

        /* Singletons */
        private static Random _RandomGen;
        public static Random RandomGen
        {
            get
            {
                if (_RandomGen == null)
                    _RandomGen = new Random();

                return _RandomGen;
            }
        }
    }
}
